//
//  File.hpp
//  VideoParse
//
//  Created by xiaerfei on 2020/2/10.
//  Copyright © 2020 erfeixia. All rights reserved.
//

#ifndef File_hpp
#define File_hpp

#include <stdio.h>
#include <string>
#include "FFURL.hpp"


class File : public FFURL {
private:
    int     url_open(char *url, int flag) override;
public:
    File(char* url, int flag);
    ~File();
    long    url_read(char *buf, int size) override;
    int     url_write(const unsigned char *buf, int size) override;
    int64_t url_seek(int64_t pos, int whence) override;
    int     url_close() override;
    int     url_get_file_handle() override;
};


#endif /* File_hpp */
